package com.shop.prj.service.impl;

import com.shop.prj.bean.Order;
import com.shop.prj.dao.Impl.OrderDaoImpl;
import com.shop.prj.dao.OrderDao;
import com.shop.prj.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    OrderDao orderDao=new OrderDaoImpl();
    @Override
    public int insert(Order order) {
        return orderDao.insert(order);
    }

    @Override
    public int update(Order order) {
        return orderDao.update(order);
    }

    @Override
    public int delete(Integer id) {
        return orderDao.delete(id);
    }

    @Override
    public List<Order> queryAll() {
        return orderDao.queryAll();
    }

	@Override
	public Order queryByOrderId(Integer id) {
		// TODO Auto-generated method stub
		return orderDao.queryByOrderId(id);
	}
}
